package com.mdxq.smp.test01.controller;


import com.mdxq.smp.test01.entity.User;
import com.mdxq.smp.test01.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author WanJl
 * @version 1.0
 * @title UserController
 * @description
 * @create 2024/12/16
 */
@Api(tags = "用户管理接口")
@RestController
public class UserController {
    @Resource
    UserService userService;

    @ApiOperation(value = "查询用户列表",notes = "介绍.......")
    @GetMapping("/user/queryAll")
    public List<User> queryAll() {
        return userService.list();
    }

}
